package pers.xiqingbo.pojo;

import java.math.BigDecimal;

/**
 * @PackageName: pers.xiqingbo.pojo
 * @ClassName: CartGoods
 * @Description: 购物车商品项
 * @Author: Schieber
 * @Date: 2021/2/28 下午 22:01
 */
public class CartGoods {
    /**
     * 商品id
     */
    private Integer id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品数量
     */
    private Integer count;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 商品总价格
     */
    private BigDecimal totalPrice;

    public CartGoods() {
    }

    public CartGoods(Integer id, String name, Integer count, BigDecimal price, BigDecimal totalPrice) {
        this.id = id;
        this.name = name;
        this.count = count;
        this.price = price;
        this.totalPrice = totalPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "CartGoods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", price=" + price +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
